package cn.thomas.clock;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author Tomas
 * @version 1.0.0
 * @date 2021-10-18 09:01
 **/
@SpringBootApplication
@MapperScan("cn.thomas.clock.mapper")
public class ClockApplication {

    public static void main(String[] args) {
        SpringApplication.run(ClockApplication.class,args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
